﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Common.Admin
{
    public partial class Study
    {
        public string StudyURL
        {
            get
            {
#if (DEBUG)
                Uri StudyUri = new Uri(Application.Current.Host.Source,
                    Common.ConfigurationSettings.StudyPageLocation_local + "?" +
                        Common.ConfigurationSettings.StudyPageQueryStringName + "=" +
                    this.StudyId.ToString());
#else
                 Uri StudyUri = new Uri(Application.Current.Host.Source,
                    Common.ConfigurationSettings.StudyPageLocation + "?" +
                        Common.ConfigurationSettings.StudyPageQueryStringName + "=" +
                    this.StudyId.ToString());
#endif
                return StudyUri.AbsoluteUri;
            }
        }
    }
}
